package com.admin.business.venueProjectCommercialTenantService;

import com.admin.business.venueProjectCommercialTenantService.entityClasses.VenusProjectCommercialTenantServer;
import com.tiangong.framework.bo.CDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @description: 服务表
 * @create: 2022-03-22 18:46:06
 **/
@Mapper
public interface VenueProjectCommercialTenantServiceDao {
    /**
     * 添加商户表数据
     */
    void venueProjectCommercialTenantServiceAdd(CDO cdo);

    CDO getVenueProjectCommercialTenantService(CDO cdo);

    /**
     * 商户服务列表
     * @param cdo
     * @return
     */
    List<VenusProjectCommercialTenantServer> getVenusProjectCommercialTenantService(CDO cdo);

    /**
     * 商户服务列表total
     * @param cdo
     * @return
     */
    int getVenusProjectCommercialTenantListTotal(CDO cdo);

    /**
     * 通过项目ID获取项目经纬度坐标
     * @param cdo
     * @return
     */
    String selectProjectInfoByProjectId(String longitude);

    CDO getVenueProjectCommercialTenantServiceById(CDO cdo);

    CDO getVenueProjectCommercialTenantServiceInfoById(CDO cdo);

    /**
     * 通过服务id获取该服务所有上架小区
     * @param cdo
     * @return
     */
    List<CDO> selectAllNeighbourhoodByServiceId(CDO cdo);

    /**
     * 通过服务id获取该服务所有上架小区分页count
     * @param cdo
     * @return
     */
    Integer selectAllNeighbourhoodByServiceIdCount(CDO cdo);

    /**
     * 分页查询订单列表
     * @param cdo
     * @return
     */
    List<CDO> selectAllOrderListPage(CDO cdo);

    /**
     * 分页查询订单列表total
     * @param cdo
     * @return
     */
    List<CDO> selectAllOrderListPageCount(CDO cdo);

    CDO updateServiceByProjectIdAndServiceId(CDO cdo);
}
